<?php
class TeamController extends Controller{
	public function teamAction(){
		$id = $_GET['id'];
		$team =F::M('Team');
		$team1 =$team->getTeam($id);	
		$player = $team->getPlyer($id);	
		$count = $team->getCount($id);
		$this->v->assign('team1',$team1[0]['team']);
		$this->v->assign('player',$player);
		$this->v->assign('count',$count[0]['count(*)']);
        $this->v->display('./app/'.MODULE.'/view/'.CONTROLLER.'/'.ACTION.'.html');
	}
}
